use TestHelper;
use ActionStatus;
use ActionStatusTestHelper;
$name   = "SUCCESS";
$status = ActionStatus->new($name);

checkName($status, $name);
checkIs($status, $name);
checkIs($status, "FAILURE");

print "\n";
$name   = "FAILURE";
$status = ActionStatus->new($name);

checkName($status, $name);
checkIs($status, $name);
checkIs($status, "SUCCESS");


print "\n";
$name   = "CANT_DO";
$status = ActionStatus->new($name);

checkName($status, $name);
checkIs($status, $name);
checkIs($status, "FAILURE");
checkIs($status, "SUCCESS");

print "\n";
$name   = "IMPOSSIBLE";
$status = ActionStatus->new($name);

checkName($status, $name);
checkIs($status, $name);
checkIs($status, "FAILURE");
checkIs($status, "SUCCESS");
